Carbon


CloseComponent

Header: Components.h Carbon status: Supported

Terminates your application’s connection to a component.

OSErr CloseComponent (
    ComponentInstance aComponentInstance
);
aComponentInstance

The connection you wish to close. Your application obtains the component instance from the OpenComponent function or the OpenDefaultComponent function. You can use a component identifier here, but you must coerce the data type appropriately.

function result

A result code.

DISCUSSION

This function closes only a single connection. If your application has several connections to a single component, you must call it once for each connection.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)